#!/bin/bash
java -jar Grades.jar 40 40
expected = ""
actual = ""
pass = 0
fail = 0
expected="component fail"
actual=$(java -jar Grades.jar 40 40)
echo Parameters input = 40 40
echo Expected Output = fail
if["$expected" != "$actual"];
then let "fail += 1"
else let "pass += 1"
fi

java -jar Grades.jar 50 60
expected = "Pass"
echo Parameters input = 50 60
echo Expected Output = pass
actual=$(java -jar Grades.jar 50 60)
if ["$expected" != "$actual"]
then let "fail += 1"
else let "pass += 1"
fi

java -jar Grades.jar 100 90
expected="Pass with distinction"
actual=$(java -jar Grades.jar 100 90)
if ["$expected" != "$actual"]
then let "fail += 1"
else let "pass += 1"
fi


java -jar Grades.jar 100 52
expected="Pass with distinction"
actual=$(java -jar Grades.jar 100 52)
if ["$expected" != "$actual"]
then let "fail += 1"
else let "pass += 1"
fi

echo using capitals where not to be used occurs a syntax error


